package com.zhouzj.task.springcloud.gateway.feign;

import com.zhouzj.task.springcloud.gateway.feign.fallback.UserServiceFallBackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: zhouzhijun
 * @Date: 2021/8/6 10:53
 */
@FeignClient(name = "${service.user.name}", contextId = "emailService", fallback = UserServiceFallBackImpl.class)
public interface UserService {

    @GetMapping("/user/info/{token}")
    String info(@PathVariable("token") String token);
}
